<?php
namespace app\admin\controller;
use app\BaseController;
use think\facade\Session;
use think\facade\View;

class Base extends BaseController
{
    public function __construct()
    {
        if(!Session::has('admin')){
            echo "<script>window.location.href='/admin/login/index'</script>";
            exit;  
        }
        parent::initialize();
    }
    public function view($msg){
        return view('tip/index',['msg' => $msg]);
    }
    
}
